package com.cssl.service.impl;

import com.cssl.dao.GoodsDao;
import com.cssl.pojo.Goods;
import com.cssl.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsDao goodsDao;

    @Override
    public List<Goods> index_findAll() {
        return goodsDao.index_findAll();
    }

    @Override
    public List<Goods> index_findByType(Integer t_id) {
        return goodsDao.index_findByType(t_id);
    }

    @Override
    public Goods index_findById(Integer gid) {
        return goodsDao.index_findById(gid);
    }

    @Override
    public List<Goods> shop_findByType(Integer t_id, String order) {
        return goodsDao.shop_findByType(t_id, order);
    }

    @Override
    public List<Goods> shop_mainserch(Map<String, Object> map) {
        return goodsDao.shop_mainserch(map);
    }

    @Override
    public List<Goods> shop_changeOrder(String order) {
        return goodsDao.shop_changeOrder(order);
    }

    @Override
    public List<Goods> daily_push() {
        return goodsDao.daily_push();
    }
}
